package com.ny.dao;

import com.ny.entity.Student;

import java.sql.SQLException;

public interface StudentDao {
    //    添加
    int add(Student student) throws SQLException;
    //    登录
    Student login(String studentName, String studentPassword) throws SQLException;

    Student getByStudentNameAndPassword(String studentName, String password);
    boolean updatePassword(String studentName, String newPassword);


}
